package com.Cfeng.XiaohuanChat.service;

import com.Cfeng.XiaohuanChat.entity.ChatMessage;

import java.util.List;

/**
 * @author Cfeng
 * @date 2022/8/6
 * 用户消息业务处理类
 */

public interface ChatMessageService {

    //查找世界频道聊天记录
    List<ChatMessage> findWorldLastTenMessage(String username);

    //查找私聊聊天记录
    List<ChatMessage> findPrivateLastTenMessage(String senderName, String receiverName);

    //保存聊天记录
    ChatMessage saveChatMessage(ChatMessage chatMessage);

    //查找聊天记录
    ChatMessage getChatMessage(String content);

}
